package com.bss.utils;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

import com.andy.basics.AbstractMap;
import com.andy.basics.Constants;

@Component
public class FloorGenerator extends AbstractMap {

	private static final String CLASS = FloorGenerator.class.getName();

	private static final Logger DEBUG = Logger.getLogger(Constants.DEBUG_KEY + FloorGenerator.CLASS);

	@Override
	public Object get(final Object key) {
		Integer[] array = new Integer[Integer.parseInt(key.toString())];
		for (int i = 0; i <= Integer.parseInt(key.toString()); i++) {
			array[i] = i;
		}
		return array;
	}

}
